package org.zhxy.core.principal.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.zhxy.common.config.MapperFactory;
import org.zhxy.common.utils.Constants;
import org.zhxy.entity.principal.SchoolAssets;

import java.util.List;

@Service
@Transactional
public class SchoolAssetsService {

    public List<SchoolAssets> searchSubSchoolAssets(String subSchoolId) {
        QueryWrapper<SchoolAssets> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq(Constants.DB.SUB_SCHOOL_ID,subSchoolId);
        List<SchoolAssets> schoolAssets = MapperFactory.schoolAssetsMapper.selectList(queryWrapper);
        return schoolAssets;
    }
}
